package com.tz.service;

import com.tz.dao.PictureDao;
import com.tz.dao.PictureDaoImpl;
import com.tz.dao.ProductDao;
import com.tz.dao.ProductDaoImpl;
import com.tz.entity.Picture;
import com.tz.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2016/7/27.
 */

@Transactional
@Service
public class PictureServiceImpl implements PictureService{

    @Autowired
    private PictureDao pictureDao;
    @Override
    public void savePictures(Picture p) {
        pictureDao.savePicture(p);
    }
}
